package com.youhome.service.service;

import org.jfree.data.category.DefaultCategoryDataset;
import org.jfree.data.general.DefaultPieDataset;
import org.jfree.data.time.TimeSeriesCollection;

import java.util.Date;

/**
 * Created by chen365 on 2018/08/31.
 */
public interface JFreeChartService {
    String barChart(String title, DefaultCategoryDataset dataSet);

    String pieChart(String title, DefaultPieDataset dataSet);

    String lineChart(String title, String categoryAxisLabel, String valueAxisLabel, String unit, DefaultCategoryDataset dataSet);

    String timeSeriesChart(String title, String timeAxisLabel, String valueAxisLabel, String unit, TimeSeriesCollection dataSet, Date lower, Date upper);

    String timeChart(String title, String timeAxisLabel, String valueAxisLabel, String unit, TimeSeriesCollection dataSet, Date lower, Date upper);
}
